package br.com.news.utils.business.interfaces;

import java.util.List;

import br.com.news.utils.business.exception.BusinessException;
import br.com.news.utils.database.beans.EnqueteBean;

public interface IEnqueteBusiness {
	
	Long save(EnqueteBean enquete) throws BusinessException;
	
	void update(EnqueteBean enquete) throws BusinessException;
	
	List<EnqueteBean> findByQuestion(EnqueteBean questao);

	List<EnqueteBean> findPollByStatus(boolean status) throws BusinessException;
	
	List<EnqueteBean> findPollActive() throws BusinessException;
	
	List<EnqueteBean> findAll() throws BusinessException;
	
	List<EnqueteBean> lastPoll() throws BusinessException;

}
